<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$ZM_VERSION = '';
if(file_exists(dirname(BASEPATH).'/resource/ZM_VERSION.php')){
	include dirname(BASEPATH).'/resource/ZM_VERSION.php';
}

define('PROJECT_ADMIN_NAME', 'MPC系统');

//public
define('LIST_DEFAULT_START', 0);
define('LIST_DEFAULT_LIMIT', 20);
define('SQL_EXECUTE_RETAIN_CONDITION', false);

define('PERMISSION_DISABLE', ENVIRONMENT != 'production');

//admin
define('SUPER_PASSWORD','272905369ec2b33c4339ee89a30be52a');
define('SALT', '3f372a845cb88d5bf8423edbff66809b');
define('DEFAULT_PASSWORD', '123456');
define('NOW',date('Y-m-d H:i:s'));
define('TODAY',date('Y-m-d'));

//response code
define('RESPONSE_CODE_UNAUTHORIZED', 401);

//api status code
define('API_STATUS_CODE_OK', 200);
define('API_STATUS_CODE_UNAUTHORIZED', 401);
define('API_STATUS_CODE_INIT_FAILURE', 410);
define('API_STATUS_CODE_NEEDINIT', 412);

//URL
define('SITE_BASE_URL', config_item('base_url').'/');
define('RESOURCE_URL', SITE_BASE_URL.'resource/');
define('UPLOAD_URL', SITE_BASE_URL.'uploads/');
define('UPLOAD_URL_ORIGIN', UPLOAD_URL.'o/');
define('UPLOAD_URL_THUMB', UPLOAD_URL.'t/');
define('UPLOAD_URL_FILE', UPLOAD_URL.'f/');

//PATH
define('UPLOAD_PATH', dirname(BASEPATH).'/uploads/');
define('UPLOAD_PATH_ORIGIN', UPLOAD_PATH.'o/');
define('UPLOAD_PATH_THUMB', UPLOAD_PATH.'t/');
define('UPLOAD_PATH_FILE', UPLOAD_URL.'f/');


define('TEMPLATE_PROJECT', 'mpc'.$ZM_VERSION);
define('TEMPLATECSS_PATH', dirname(BASEPATH).'/resource/'.TEMPLATE_PROJECT.'/templateCSS/');

//status
define('STATUS_ACTIVE', '1');
define('STATUS_DISABLE', '0');
define('STATUS_PENDING', '-1');
define('STATUS_DELETE', '-2');

$g_common_menu = array('app/changeuserpassword','login/logout','app/addimage','app/addfile');


/* End of file application_config.php */
/* Location: ./application/config/application_config.php */